/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const componentsRouter = {
  path: '/components',
  component: Layout,
  redirect: 'noRedirect',
  name: 'ComponentDemo',
  meta: {
    title: '文章管理',
    icon: 'education', auth: true
  },
  children: [
    {
      path: 'addBlog',
      component: () => import('@/views/blog/addBlog'),
      name: 'addBlog',
      meta: { title: '编辑文章', auth: true }
    },
    {
      path: 'bolgType',
      component: () => import('@/views/blog/blogType'),
      name: 'bolgType',
      meta: { title: '分类管理', auth: true }
    },
    {
      path: 'blogList',
      component: () => import('@/views/blog/blogList'),
      name: 'blogList',
      meta: { title: '文章列表', auth: true }
    },
    {
      path: 'comment',
      component: () => import('@/views/blog/comment'),
      name: 'comment',
      meta: { title: '评论管理', auth: true }
    }
  ]
}

export default componentsRouter
